.class public Lrexsee/core/browser/clazz/ActivityResult;
.super Ljava/lang/Object;
.source "ActivityResult.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;
    }
.end annotation


# instance fields
.field private final mContext:Landroid/content/Context;

.field private mListener:Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

.field private mRequestCode:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 11
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 8
    const/4 v0, 0x0

    iput v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mRequestCode:I

    .line 9
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mListener:Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

    .line 12
    iput-object p1, p0, Lrexsee/core/browser/clazz/ActivityResult;->mContext:Landroid/content/Context;

    .line 13
    return-void
.end method


# virtual methods
.method public run(IILandroid/content/Intent;)V
    .locals 1
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "resultIntent"    # Landroid/content/Intent;

    .prologue
    .line 20
    iget v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mRequestCode:I

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mListener:Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

    if-eqz v0, :cond_0

    .line 21
    iget-object v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mListener:Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

    invoke-virtual {v0, p2, p3}, Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;->run(ILandroid/content/Intent;)V

    .line 22
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mListener:Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

    .line 24
    :cond_0
    return-void
.end method

.method public start(Landroid/content/Intent;Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;)V
    .locals 2
    .param p1, "startIntent"    # Landroid/content/Intent;
    .param p2, "listener"    # Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

    .prologue
    .line 15
    iget v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mRequestCode:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mRequestCode:I

    .line 16
    iput-object p2, p0, Lrexsee/core/browser/clazz/ActivityResult;->mListener:Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;

    .line 17
    iget-object v0, p0, Lrexsee/core/browser/clazz/ActivityResult;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    iget v1, p0, Lrexsee/core/browser/clazz/ActivityResult;->mRequestCode:I

    invoke-virtual {v0, p1, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 18
    return-void
.end method
